<div class="container-fluid">
	<div class="row-fluid">
		<div class="span2">
			   <ul class="nav nav-tabs nav-stacked">
				<li class="active"><a href="/letter/index">未处理消息</a></li>
				<li><a href="/letter/send">发送消息</a></li>
				<!--<li><a href="/letter/recycle">回收站</a></li>-->
				<li><a href="/letter/history">历史消息</a></li>
            </ul>					   
		</div>
	<div class="span9">
      <fieldset><legend>未处理消息及当日消息</legend>
      <p style="color:red">提示：红色表示未回复，黑色表示已回复。</p>
	<table class="table table-hover">
			 <tr><th>校区</th><th>内容</th><th>发信时间</th></tr>
        <*eval var=-1 assign="groupid_or"*>
			 <*foreach from=$teacher item=rs*>
        <*eval var=$rs.groupid assign="groupid"*>
        <*if $groupid_or<>$groupid*>
         <tr class="success">
         <td colspan="3"><*eval var=$rs.groupid assign="groupid"*><*if $groupid*><*$rs.groupname*><*else*>默认<*/if*></td>
         </tr>
        <*eval var=$groupid assign="groupid_or"*>
        <*/if*>
             
			   <tr onclick="window.location='/letter/reply/tid/<*$rs.tid*>/classid/<*$rs.classid*>/addtime/<*$rs.addtime*>'" <*if $rs.over*>style="cursor:pointer;"<*else*>style="cursor:pointer;color:#F00" <*/if*>>
				   <td><*$rs.classname*>&nbsp;<small style="color:gray"><*$rs.schoolname*>——<*$rs.teachername*></small></td><td><*if $rs.content*><*$rs.content*><*else*>[图片]<*/if*></td><td><*$rs.addtime*></td>
			   </tr>
			 <*/foreach*>
		   </table>
	 </fieldset>
	</div>
</div>
</div>   





<script>
function deleteit(cid)
{
  if(confirm("删除将不能恢复")){
   window.location='/letter/delete/cid/'+cid;
  }
}

function getsch(gid){
    $.get("/letter/getsch/groupid/"+gid,
	function(data){
	  $('#two_'+gid).append(data);
	});
}
function getcla(ids){ 
   var obj = eval('('+'ids'+')');
   $('.three').hide();
   $('#three_'+obj.sid).show(); 
   var obj = eval('('+'ids'+')');
   $('#sch'+obj.sid+'>ul').empty();
   $.get("/letter/getcla/gid/"+obj.gid+"/sid/"+obj.sid,
   function(data){
	  $('#three_'+obj.sid).append(data);
   });   
  
}
function getList(cid){
  $.get("/letter/getlist/cid/"+cid,
  function(data){
	 $('#list').empty().append(data);
  });
  $('.tabbable').show();
}
function cleartab(id){
  if(id==1){
    $('#content').val('');
  }else{
    $('#pic').val('');
  }
}
</script>
